HOME = /home/hucw
INCLUDE = -I/usr/include -I$(HOME)/include
LIBS = -L$(HOME)/lib -lunp -lm
CFLAGS = -g -O2 -Wall $(INCLUDE)
BINDIR=./bin

CC = gcc

inet_aton_ex:inet_aton_ex.o
	rm -rf $(BINDIR)/$@
	$(CC) $(CFLAGS) -o $(BINDIR)/$@ $? $(LIBS)

inet_pton_ex:inet_pton_ex.o
	rm -rf $(BINDIR)/$@
	$(CC) $(CFLAGS) -o $(BINDIR)/$@ $? $(LIBS)

clean:
	rm -rf *.o
